// 备件管理
const route = {
  meta: {
    roles: ['service_item_mgt'],
    title: '服务项目',
    icon: 'xiaoxizhongxin-weixuan',
    activeIcon: 'xiaoxizhongxin-xuanzhong',
    group: 'toolBar'
  },
  path: '/service_item',
  redirect: '/service_item/index',
  component: () => import(/* webpackChunkName: "spareParts" */ '@views/index.vue'),
  children: [
    {
      meta: {
        roles: ['service_item_mgt']
      },
      path: 'index',
      name: 'ServiceItem',
      component: () => import(/* webpackChunkName: "serviceGroup" */ '@/afterSales/views/serviceItem/index.vue'),
      children: [
        {
          path: 'service_item_category',
          name: 'ServiceItemCategory',
          meta: {
            title: '服务项目品类',
            group: 'service_item',
            roles: ['service_item_mgt_category']
          },
          component: () => import(/* webpackChunkName: "serviceGroup" */ '@/afterSales/views/serviceItem/category/index.vue')
        },
        {
          path: 'service_item_record',
          name: 'ServiceItemRecord',
          meta: {
            title: '服务项目记录',
            group: 'service_item',
            roles: ['service_item_mgt_record']
          },
          component: () => import(/* webpackChunkName: "serviceGroup" */ '@/afterSales/views/serviceItem/record/index.vue')
        }
      ]
    }
  ]
}

export default route
